#ifndef MAINWIDGET_H
#define MAINWIDGET_H

#include <QWidget>

#include "../threads/CustomThread.h"

QT_BEGIN_NAMESPACE
namespace Ui { class MainWidget; }
QT_END_NAMESPACE

class MainWidget : public QWidget
{
    Q_OBJECT

public:
    MainWidget(QWidget *parent = nullptr);
    ~MainWidget();

private:
    Ui::MainWidget *ui;

// **** 线程 CustomThread ****

private slots:
    void on_startThread_pressed();

    void on_stopThread_pressed();

    void on_isRunning_pressed();

    void on_isFinished_pressed();

private:
    CustomThread   my_thread;
};
#endif // MAINWIDGET_H
